<template>
	<view class="orderGoods">
		<image :src="goodsImgUrl" mode=""></image>
		<view class="goods-info">
			<view class="left">
				<text>{{goodsName}}</text>
				<text>{{goodsDesc}}</text>
			</view>
			<view class="right">
				<text>￥{{goodsPrice}}</text>
				<text>x{{goodsNum}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				
			}
		},
		name:'orderGoods',
		props:{
			goodsName:{
				type:String,
				default:''
			},
			goodsDesc:{
				type:String,
				default:''
			},
			goodsPrice:{
				type:String,
				default:''
			},
			goodsNum:{
				type:String,
				default:''
			},
			goodsImgUrl:{
				type:String,
				required:true
			}
		},
		methods:{
		}
	}
</script>

<style lang="scss" scoped>
	.orderGoods{
		width: 750rpx;
		height: 194rpx;
		background: #f9f9f9;
		padding: 0 30rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		image{
			width: 150rpx;
			height: 150rpx;
			background: #ffffff;
			border-radius: 6rpx;
		}
		.goods-info{
			display: flex;
			justify-content: space-between;
			width: 520rpx;
			.left{
				text:first-child{
					font-size: 24rpx;
					font-weight: 500;
					color: #1e1e1e;
					margin-bottom: 18rpx;
					width: 362rpx;
					overflow: hidden;
					-webkit-line-clamp: 2;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-box-orient: vertical;
				}
				text:last-child{
					display: flex;
					flex-direction: column;
					justify-content: flex-start;
					font-size: 24rpx;
					font-weight: 500;
					color: #666666;
					width: 362rpx;
					overflow: hidden;
					-webkit-line-clamp: 2;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-box-orient: vertical;
				}
			}
			.right{
				display: flex;
				flex-direction: column;
				align-items: flex-end;
				justify-content: flex-end;
				text:first-child{
					font-size: 28rpx;
					font-weight: 700;
					color: #111111;
					margin-bottom: 55rpx;
				}
				text:last-child{
					font-size: 28rpx;
					font-weight: 500;
					color: #999999;
				}
			}
		}
	}
</style>
